package com.h.sevice.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.h.common.entity.Cashier;
import com.h.common.exception.WLAdminException;
import com.h.mapper.CashierMapper;
import com.h.sevice.CashierService;
import com.pandawork.core.exception.SSException;
import com.pandawork.core.log.LogClerk;

@Service("cashierService")
public class CashierServiceImpl implements CashierService {
	
	@Autowired(required=false)
	private CashierMapper cashierMapper;

	@Override
	public Cashier findUser(String name, String password)
			throws SSException {
		try {
			return cashierMapper.findUser(name, password);
		} catch (Exception e) {
			LogClerk.errLog.error(e);
			throw SSException.get(WLAdminException.SystemException, e);
		}
	}
	
	

}
